﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Employee_salary
{
    abstract class Employee
    {
       

        private string name;
        public Employee(string name)
        {
            Name = name;

        }



        public string Name
        {
            get
            {

                return name;
            }
            set
            {

                if (String.IsNullOrWhiteSpace(value))
                    throw new ArgumentNullException("No name");
                else
                    name = value;
            }
        }
        public abstract void CalculateSalary();

    }
}
